#ifndef SORTDIALOG_H
#define SORTDIALOG_H

#include <QDialog>
#include <QVariant>

namespace Ui {
    class SortDialog;
}
/** Basic dialog that asks the user what to sort on.
*/
class SortDialog : public QDialog
{
    Q_OBJECT

public:
    explicit SortDialog(QWidget* parent = 0);
    explicit SortDialog(QString path, QWidget* parent=0);
    enum Option { None, Recent, Album, Artist, Title } ;
    void checkOption(Option o);
    Q_ENUMS(Option);
    ~SortDialog();
    void accept();
    Option option() const;
protected:
    void changeEvent(QEvent *e);

private:
    Ui::SortDialog *ui;
    QString m_path;

};

#endif // SORTDIALOG_H
